<?php

namespace slinks\extensions\action\configuration;

use slinks\core\DependencyInjection\IDumpsArgument;

/**
 * A IResult configuration 
 * 
 * @author Navid Mitchell
 *
 */
class ResultConfig implements IResultConfig, IDumpsArgument {

    private $className;
    private $name;

    function __construct($name, $className) {
        $this->name = $name;
        $this->className = $className;
    }

    /**
     * Return the name for this result 
     */
    public function getName() {
        return $this->name;
    }

    /**
     * @return the class name that implements IResult for the given type.
     */
    public function getClassName() {
        return $this->className;
    }

    public function getArgumentString() {
        return sprintf("new slinks\\extensions\\action\\configuration\\ResultConfig('%s','%s')", $this->name, $this->className);
    }

}